package com.dhy.socket.controller;

import com.dhy.dao.ClassDao;
import com.dhy.socket.anno.Controller;
import com.dhy.socket.anno.GetMapping;
import com.dhy.socket.anno.RequestParam;
import com.dhy.socket.res.AjaxResponse;

/**
 * @author 大忽悠
 * @create 2022/6/21 9:03
 */
@Controller
public class ClassController {
    private final ClassDao classDao=new ClassDao();

    /**
     * 统计某班不及格学生的全部信息
     */
    @GetMapping("/queryStudByClass")
    public AjaxResponse queryStudByClass(@RequestParam("classId") String classId){
      return AjaxResponse.success(classDao.queryStudByClass(classId));
    }
}
